import { Controller, Get, Inject } from '@nestjs/common';
import { FactoryService } from './factory.service';

@Controller('factory')
export class FactoryController {
  constructor(@Inject('CONNECTION') private factoryService: FactoryService) {}

  @Get()
  getFact() {
    return this.factoryService.getOptions();
  }
}
